<?php
namespace app\index\controller;
use think\facade\Request;
use think\facade\Session;
use think\facade\Cookie;
use app\common\service\AdminUser as S;
use app\common\service\AdminUserscore as US;
use think\facade\View;
use think\facade\Cache;

use app\common\util\CryptAES as AES;
use app\common\service\WxCrawler;
class Myaes extends \app\BaseController
{
    public function index()
    {
    
        $a=new WxCrawler();
        $con= $a->crawByUrl('https://mp.weixin.qq.com/s/43n4Ro2d41W5HzSOVgSDEg?f=json');
    //    //密钥
    //    Cache::store('redis')->set('mytest','2345',3600);
    //    $abc= Cache::store('redis')->get('mytest');
    //    echo $abc;
    //echo $con;
     // dump($con);

      //echo($con['content_html']);
    
      return $this->fetch('index',['con'=>$con['content_html']]);

    }
}


